/**
 * Created by 86135 on 2020/2/19.
 */
public class Test04 {
    public static void main(String[] args) {


        int[] arr = {11,21,5,12,7,14};
        for (int i = 0; i < arr.length / 2-1; i++) {
            if (arr[i] < arr[arr.length-1-i]){
                int a = arr[i];
                arr[i] = arr[arr.length-1-i];
                arr[arr.length-1-i] = a;

            }
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
